package com.squirrel.michale;

import java.util.HashMap;
import java.util.Map;

public class Day20250101_LeetCode003046 {


    public boolean isPossibleToSplit(int[] nums) {
        Map<Integer, Integer> frequencyMap = new HashMap<>();
        for (int x : nums) {
            if (frequencyMap.merge(x, 1, Integer::sum) > 2) {
                return false;
            }
        }
        return true;
    }
}
